package com.touchfired.common.message;

import com.touchfired.common.utils.DateUtil;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description 传输消息抽象
 * @Author 幸佳俊
 */
@Data
@Accessors(chain = true)
public abstract class BaseMessage implements Message {

    /** 服务器时间（HH:mm:ss） */
    private String date = DateUtil.nowTimeString();

    /** 客户端输入的内容 */
    private String content;

    public BaseMessage(String content) {
        this.content = content;
    }

    @Override
    public String getContent() {
        return content;
    }

    @Override
    public void setContent(String content) {
        this.content = content;
    }
}
